const db = require('../../mysql')
const fs = require('fs')
const path = require('path')

// 获取课程数据
exports.getClassesData = (req, res) => {
    const asideSql = 'SELECT * FROM classes'
    db.query(asideSql, (err, result) => {
        if (err) return res.cc(err)
        res.send({
            status: 0,
            data: result,
            message: '获取列表成功',
        })
    })
}